﻿using Admin.CYT369.Com.WebBase;
using brand.admin.cyt369.com.services.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Razor.Language.Extensions;
using System.Collections.Generic;

namespace brand.admin.cyt369.com.Areas.BrandAdmin.Controllers
{
    [Area(brand.admin.cyt369.com.Areas.BrandAdmin.Models.PlugName.Name)]
    public partial class  BrandController : Admin.CYT369.Com.WebBase.AuthorizeController
    {
        /// <summary>
        /// 审核通过
        /// </summary>
        /// <returns></returns>
        public IActionResult AuditPassed()
        {
            return View();
        }

        /// <summary>
        /// 审核失败
        /// </summary>
        /// <returns></returns>
        public IActionResult AuditFailed()
        {
            return View();
        }

        /// <summary>
        /// 等待审核
        /// </summary>
        /// <returns></returns>
        public IActionResult AuditAwait()
        {
            return View();
        }

        /// <summary>
        /// 已删除的
        /// </summary>
        /// <returns></returns>
        public IActionResult BrandDel(int id)
        {
            ViewBag.brandId = id;
            return View();
        }


        public IActionResult _AuditLogDlg(long id)
        {
            ViewBag.brandId = id;
            return View();
        }

        public IActionResult _ViewBrandDlg(int id)
        {
            var model= brand.admin.cyt369.com.services.Services.BrandService.Instance.GetBrandByID_IncludeImg_IncludeDel(id);
            if (model != null)
            {
                int cityid = model.FranchiseRegionID==null?0:model.FranchiseRegionID.Value;
                var city = brand.admin.cyt369.com.services.Services.CityService.Instance.GetCityByID(cityid);
                ViewBag.city = city;
            }
            return View(model);
        }

        public IActionResult _AuditBrandDlg(int id)
        {
            var model = brand.admin.cyt369.com.services.Services.BrandService.Instance.GetBrandByID_IncludeImg(id);
            return View(model);
        }
        public IActionResult _AuditBrandDlgRemark()
        {
            return View();
        }
    }
}
